package br.com.kliptus.model.enums;

import br.com.kliptus.model.bean.EntityTypeJB;

public enum EntityTypeEnum {
	
	CORPORATE(1l), PERSON(2l);
	
	private Long id;
	
	private EntityTypeEnum(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public String toString() {
		switch (this.id.intValue()) {
		case 1:
			return "Empresa";
		case 2:
			return "Pessoa";			
		default:
			return "Empresa";
		}
	}
	
	public EntityTypeJB getEntityType() {
		return new EntityTypeJB(this.id);
	}
	
}